export class example extends plugin {
  constructor() {
    super({
      name: '戳他',
      dsc: '戳一名用户',
      event: 'message',
      priority: 114514,
      rule: [
        {
          reg: /^戳他.*$/,
          fnc: 'chuota'
        },
      ]
    })
  }
    
async chuota(e) {
    const pokeCountMatch = e.msg.match(/戳他(\d+).*/);
    const pokeCount = pokeCountMatch ? parseInt(pokeCountMatch[1], 10) : 1; 
    let atqq = e.message
      .filter(item => item.type === 'at')
      .map(item => item.qq);
    if (atqq && atqq.length > 0) {
      for (let i = 0; i < pokeCount; i++) {
        await e.group.pokeMember(atqq[0]); 
      }
     } 
       else 
     {
      await e.reply('请@一名用户');
     }
    }
}